package com.pojo;

import java.io.Serializable;
import java.util.Date;

public class ShoppingCart implements Serializable {

    private Integer sId;    //购物车编号
    private User  user;   //用户编号
    private Course course;    //课程编号
    private Date currentTime;   //当前时间

    public Integer getsId() {
        return sId;
    }

    public void setsId(Integer sId) {
        this.sId = sId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public Date getCurrentTime() {
        return currentTime;
    }

    public void setCurrentTime(Date currentTime) {
        this.currentTime = currentTime;
    }

    public ShoppingCart(Integer sId, User user, Course course, Date currentTime) {
        this.sId = sId;
        this.user = user;
        this.course = course;
        this.currentTime = currentTime;
    }

    public ShoppingCart() {
    }

    @Override
    public String toString() {
        return "ShoppingCart{" +
                "sId=" + sId +
                ", user=" + user +
                ", course=" + course +
                ", currentTime=" + currentTime +
                '}';
    }
}
